from django import forms
from django.contrib.auth.forms import AuthenticationForm


class LoginForm(AuthenticationForm):
    username = forms.CharField(label="用户名", widget=forms.TextInput(attrs={'autofocus': True}))
    password = forms.CharField(label="密码", widget=forms.PasswordInput)
